use axum::routing::{get, post};
use crate::core::AppState;
use crate::controllers::frontend::home_controller;

pub fn frontend_router() -> axum::Router<AppState> {
    let router = axum::Router::new()
    .route("/", get(home_controller::home_handler))
    .route("/category", get(home_controller::list_blog_handler))
    .route("/article/:id", get(home_controller::detail_blog_handler))
    .route("/taxon", get(home_controller::list_product_handler))
    .route("/product/:id", get(home_controller::detail_product_handler))
    .route("/collect", get(home_controller::list_collect_handler))
    .route("/contact", get(home_controller::add_feedback_handler));
    router
}